setNestedScrollingEnabled

open fun setNestedScrollingEnabled(@NonNull view: View, enabled: Boolean)(source)

Enable or disable nested scrolling for this view.

If this property is set to true the view will be permitted to initiate nested scrolling operations with a compatible parent view in the current hierarchy. If this view does not implement nested scrolling this will have no effect. Disabling nested scrolling while a nested scroll is in progress has the effect of stopping the nested scroll.

Parameters

view

view for which to set the state.

enabled

true to enable nested scrolling, false to disable

See also